package com.gandong8.trace.tool.config.rocketmq.properties;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 rocketmq.producer.isOnOff=off
 rocketmq.producer.groupName=aaa
 rocketmq.producer.namesrvAddr=localhost:9876
 rocketmq.producer.maxMessageSize=4096
 rocketmq.producer.sendMsgTimeOut=3000
 rocketmq.producer.retryTimesWhenSendFailed=2

 */
@ConfigurationProperties(prefix = "rocketmq.producer")
@Data
@ToString
public class RocketMqProducerProperties {
    private String isOnOff = "off";
    private String groupName = "group1";
    private String namesrvAddr;
    private Integer maxMessageSize = 4096;
    private Integer sendMsgTimeOut = 3000;
    private Integer retryTimesWhenSendFailed = 2;

}

